exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 58 discussion

A company has a monolithic application that is critical to the company’s business. The company hosts the application on an Amazon EC2 instance that runs Amazon Linux 2. The company’s application team receives a directive from the legal department to back up the data from the instance’s encrypted Amazon Elastic Block Store (Amazon EBS) volume to an Amazon S3 bucket. The application team does not have the administrative SSH key pair for the instance. The application must continue to serve the users.

Which solution will meet these requirements?

  • A. Attach a role to the instance with permission to write to Amazon S3. Use the AWS Systems Manager Session Manager option to gain access to the instance and run commands to copy data into Amazon S3.
  • B. Create an image of the instance with the reboot option turned on. Launch a new EC2 instance from the image. Attach a role to the new instance with permission to write to Amazon S3. Run a command to copy data into Amazon S3.
  • C. Take a snapshot of the EBS volume by using Amazon Data Lifecycle Manager (Amazon DLM). Copy the data to Amazon S3.
  • D. Create an image of the instance. Launch a new EC2 instance from the image. Attach a role to the new instance with permission to write to Amazon S3. Run a command to copy data into Amazon S3.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
masetromain
Highly Voted 1 year, 11 months ago
Selected Answer: C
The correct answer is C. Taking a snapshot of the EBS volume using Amazon Data Lifecycle Manager (DLM) will meet the requirements because it allows you to create a backup of the volume without the need to access the instance or its SSH key pair. Additionally, DLM allows you to schedule the backups to occur at specific intervals and also enables you to copy the snapshots to an S3 bucket. This approach will not impact the running application as the backup is performed on the EBS volume level. Option A is not correct because the instance would need an IAM role with permission to write to S3 and access to the instance via Systems Manager Session Manager. Option B is not correct because it would require stopping the instance, which would impact the running application. Option D is not correct because it would require stopping the instance and creating a new EC2 instance, which would impact the running application.
upvoted 37 times
mav3r1ck
9 months, 1 week ago
Not true! Feel free to challenge me if you think I am wrong. Taking a snapshot of the EBS volume using Amazon DLM is a straightforward approach to ensure data durability and availability. However, this option does not directly address the requirement to move data to an S3 bucket. While EBS snapshots are stored on S3, they are not accessible as regular S3 objects for direct file manipulation or viewing, meaning additional steps would be required to access and use the data in the format specified by the requirement. Verdict: Does Not Fully Meet Requirements. DLM manages snapshots for EBS volumes but doesn't facilitate direct, accessible backups to S3 as described.
upvoted 8 times
GabrielShiao
2 months, 3 weeks ago
I agree with this A. In addition, the application team has no SSH key access, you can not think that the team has the DLM permission as well. Infrastructure teams generally take this type of role.
upvoted 1 times
...
ry1999
4 months ago
This is valid, A is the correct answer. C is wrong because Explanation: This option indirectly involves copying data to S3. The primary action is taking a snapshot of the EBS volume, which can be managed by DLM. However, moving the data from a snapshot directly to S3 isn't straightforward. Snapshots are stored in S3 by AWS internally, but this storage is opaque to users and can't be accessed directly as regular S3 objects.
upvoted 2 times
...
gustori99
8 months, 3 weeks ago
I'll try to challange you :-) You can use EBS direct APIs to access data from an EBS snapshot. This is how you can read the data from the snapshot and copy it to S3. https://docs.aws.amazon.com/ebs/latest/userguide/ebs-accessing-snapshot.html
upvoted 3 times
...
...
Sab
1 year, 1 month ago
Your reasoning is wrong . Option A has mentioned that instance profile role is attached to EC2 instance.
upvoted 2 times
...
Atila50
1 year, 11 months ago
thank you for correcting some of these answers and for the explanations to them
upvoted 3 times
...
mmendozaf
1 year, 11 months ago
Assuming that EBS is encrypted, I think that is much easier to run the copy command from AW system manager
upvoted 9 times
...
...
bititan
Highly Voted 1 year, 11 months ago
Selected Answer: A
taking a backup of the data to s3. aws doesn't allow up to view snapshots in s3
upvoted 12 times
tmlong18
11 months, 3 weeks ago
The requirement is only 'back up'
upvoted 1 times
...
...
grumpysloth
Most Recent 1 week, 4 days ago
Selected Answer: D
This is a badly designed question IMO. (D) could be correct but creating an AMI by default will reboot the instance, and no mention of SSM role permissions. (A) could also work but no mention of SSM permissions in the role. Amazon Lnux 2 have pre-installed the SSM agent. (B) is wrong since it interrupts the app. (C) won't work.
upvoted 1 times
...
Heman31in
2 weeks, 3 days ago
Selected Answer: A
not C because of How EBS Snapshot Export Works When you export an EBS snapshot to S3, the export creates an Amazon Machine Image (AMI)-compatible format of the snapshot. This export process results in a snapshot stored as disk image files (e.g., .vmdk, .vhd, .raw, etc.), depending on the format chosen. The data is not immediately readable or usable as a plain text or object file in S3. When is the Data Readable? To make the exported data readable: Reimport the Snapshot: You would need to reimport the disk image into AWS as a new EBS volume using the VM Import/Export service. Custom Processing: If the snapshot contains a file system, you could manually process the exported image to extract the data using tools compatible with the format (e.g., mounting a .raw image locally).
upvoted 1 times
...
Heman31in
2 weeks, 3 days ago
Selected Answer: A
C. Take a snapshot of the EBS volume by using Amazon Data Lifecycle Manager (Amazon DLM). Copy the data to Amazon S3. Challenges: While creating an EBS snapshot is feasible without requiring instance access, transferring the data from the snapshot to S3 still requires additional steps. Snapshot-based backup does not provide direct file-level access for selective backups to S3. Conclusion: Partially valid, but it does not meet the requirement to back up the data directly to S3. Since it is a legal department ..why to have another copy before transferring to final S3 destination.
upvoted 1 times
...
Aritra88
3 weeks ago
Selected Answer: A
Leverages AWS Systems Manager Session Manager: Session Manager allows secure shell-less access to the instance without requiring an SSH key. It provides a way to run commands directly on the instance, even if SSH access is unavailable. No Disruption to the Application: The instance remains operational, and the application continues to serve users while the commands are executed. S3 IAM Role for Access: By attaching an IAM role to the instance with permissions to write to S3, you can securely transfer data without needing to configure additional credentials. Efficient and Direct Backup: Data is copied directly from the running instance to the S3 bucket, eliminating the need for intermediate snapshots, new instances, or additional resources. Minimal Development Time: This approach avoids creating images, launching new instances, or performing additional resource management steps.
upvoted 1 times
...
DhirajBansal
3 weeks, 4 days ago
Selected Answer: A
A is Correct Answer. IAM Role will provide EC2 instance to write data to S3 bucket. Systems Manager Session Manager will access system and initiate back writing in S3. This will satisfy the condition of not having SSH Keys.
upvoted 1 times
...
amministrazione
3 months, 4 weeks ago
C. Take a snapshot of the EBS volume by using Amazon Data Lifecycle Manager (Amazon DLM). Copy the data to Amazon S3.
upvoted 1 times
...
Jason666888
4 months, 3 weeks ago
Selected Answer: C
Key point: The application must continue to serve the users. If we choose A, then it may impact the application. C wouldn't have that problem
upvoted 2 times
...
Moghite
5 months ago
Selected Answer: C
c - Amazon Data Lifecycle Manager allows creation of EBS snapshots
upvoted 3 times
...
vip2
5 months, 3 weeks ago
Selected Answer: C
C looks more better than A according to keep application running all time
upvoted 2 times
...
vip2
6 months ago
Selected Answer: C
currect answer is C Data Lifecycle Manager (DLM) direct APIs can be used to read the data from the snapshot and copy the data to Amazon S3.
upvoted 2 times
...
cnethers
6 months, 1 week ago
C Reason You can use Amazon Data Lifecycle Manager to automate the creation, retention, and deletion of EBS snapshots and EBS-backed AMIs. When you automate snapshot and AMI management, it helps you to: Protect valuable data by enforcing a regular backup schedule. Create standardized AMIs that can be refreshed at regular intervals. Retain backups as required by auditors or internal compliance. Reduce storage costs by deleting outdated backups. Create disaster recovery backup policies that back up data to isolated Regions or accounts.
upvoted 1 times
...
Helpnosense
6 months, 1 week ago
Selected Answer: D
Vote D because other than it doesn't mention choose no reboot when creating image, the rest steps cover all the necessities to backup data on ebs to s3. But consider B explicitly mention with reboot option while D not reason to assume D will use no reboot option. Answer C and A have too much assumption that not state in the question and answer. A: not sure ssm agent is installed and configure to work with system manager. C: missing steps to mount volume on new create ec2 with s3 instance profile attached.
upvoted 1 times
...
Shenannigan
6 months, 2 weeks ago
Selected Answer: C
Option A is a manual process where you have to connect via SSM Session manager - too tedious and requires huge manual effort to maintain backups So going with C, as you can't manage the snapshot in S3 but you can restore it if anything goes wrong
upvoted 3 times
...
ahhatem
6 months, 3 weeks ago
Selected Answer: C
One issue with option A is that an ec2 instance with a role granting access to only S3, wouldn’t be registered with the session manager and it won’t be possible to create a session.
upvoted 3 times
...
iulian0585
7 months ago
Selected Answer: A
I don't see an easy way to copy files to an S3 bucket other the answer A. C copying block data to a bucket is also posible but it's binary data, so not in a easy usable format.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago