exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 227 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 227
Topic #: 1
[All AWS Certified Developer Associate Questions]

A company has a multi-node Windows legacy application that runs on premises. The application uses a network shared folder as a centralized configuration repository to store configuration files in .xml format. The company is migrating the application to Amazon EC2 instances. As part of the migration to AWS, a developer must identify a solution that provides high availability for the repository.

Which solution will meet this requirement MOST cost-effectively?

  • A. Mount an Amazon Elastic Block Store (Amazon EBS) volume onto one of the EC2 instances. Deploy a file system on the EBS volume. Use the host operating system to share a folder. Update the application code to read and write configuration files from the shared folder.
  • B. Deploy a micro EC2 instance with an instance store volume. Use the host operating system to share a folder. Update the application code to read and write configuration files from the shared folder.
  • C. Create an Amazon S3 bucket to host the repository. Migrate the existing .xml files to the S3 bucket. Update the application code to use the AWS SDK to read and write configuration files from Amazon S3.
  • D. Create an Amazon S3 bucket to host the repository. Migrate the existing xml files to the S3 bucket. Mount the S3 bucket to the EC2 instances as a local volume. Update the application code to read and write configuration files from the disk.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
xicomynor
Highly Voted 2 years, 4 months ago
Selected Answer: C
I go with C. Even though S3 can be mounted, it might be less cost effective depending on the API operations that the tool you use to mount the bucket will perform. But with C, if you only perform controlled GET and PUT API calls as this questions states then API option will be more cost effective.
upvoted 5 times
xicomynor
2 years, 4 months ago
*SDK option will be more cost effective
upvoted 1 times
...
...
captainpike
Most Recent 2 years, 1 month ago
Selected Answer: C
I didn't know you could mount a S3. But I read the documentation and there are lots of things that must be set up (Private Link, File Gateway) and I am sure these will cost money. Since the question is about more cost effectively, I choose C
upvoted 1 times
...
IANNNNNN
2 years, 2 months ago
Selected Answer: D
*cost-effective* https://aws.amazon.com/blogs/storage/mounting-amazon-s3-to-an-amazon-ec2-instance-using-a-private-connection-to-s3-file-gateway/
upvoted 2 times
...
m4r0ck
2 years, 2 months ago
Selected Answer: D
D is the best approach as it will make use of s3 as a storage volume without the need to change the application code to include amazon SDK, but rather a simple change in the volume name in the application code would suffice to write files to S3
upvoted 1 times
...
pancman
2 years, 2 months ago
Selected Answer: C
C is correct. Yes, S3 can be mounted to an EC2 instance. But you don't need to do that in this scenario. Just use the same S3 bucket and all EC2 instances can access the XML file in S3.
upvoted 1 times
...
sichilam
2 years, 3 months ago
I go with A Amazon Elastic Block Store (EBS) Easy to use, high performance block storage at any scale 30 GB of storage for 12 months with the AWS Free Tier Scale fast for your most demanding, high-performance workloads, including mission-critical applications such as SAP, Oracle, and Microsoft products. Protect against failures with 99.999% availability, including replication within Availablity Zone (AZs), and 99.999% durability with io2 Block Express volumes. Select the storage that best fits your workload. Volumes range from cost-effective dollar-per-GB to high performance with the fastest IOPS and throughput.
upvoted 1 times
...
Phinx
2 years, 3 months ago
Selected Answer: C
C would be more cost effective. Mounting S3 to EC2 instance needs to use AWS Storage Gateway and will incur additional cost.
upvoted 2 times
Phinx
2 years, 3 months ago
https://aws.amazon.com/blogs/storage/mounting-amazon-s3-to-an-amazon-ec2-instance-using-a-private-connection-to-s3-file-gateway/#:~:text=Using%20this%20solution%20you%20can,to%20change%20any%20source%20code.
upvoted 1 times
...
...
SBoksh
2 years, 5 months ago
Ok going with D then, was unsure about local volume but looks like it is ok. https://bluexp.netapp.com/blog/amazon-s3-as-a-file-system
upvoted 1 times
...
SoMaL69
2 years, 5 months ago
Selected Answer: D
I would go with D. https://aws.amazon.com/blogs/storage/mounting-amazon-s3-to-an-amazon-ec2-instance-using-a-private-connection-to-s3-file-gateway/
upvoted 1 times
...
SBoksh
2 years, 5 months ago
Selected Answer: C
Although It is possible to mount to S3, but I don't think it is wise to mount as local volume local volumes are subject to the availability of the underlying node and are not suitable for all applications (https://kubernetes.io/docs/concepts/storage/volumes/) https://aws.amazon.com/blogs/storage/mounting-amazon-s3-to-an-amazon-ec2-instance-using-a-private-connection-to-s3-file-gateway/
upvoted 4 times
...
michaldavid
2 years, 5 months ago
Selected Answer: D
You can definitely mount S3. I do it on daily basis. I believe the answer is D.
upvoted 4 times
pancman
2 years, 2 months ago
No sir, you can't
upvoted 1 times
pancman
2 years, 2 months ago
Sorry, just found out that you actually can.
upvoted 3 times
...
...
...
RyanDDD
2 years, 5 months ago
C You can mount S3 bucket as local volume.
upvoted 1 times
RyanDDD
2 years, 5 months ago
type - You can't mount S3
upvoted 1 times
...
...
k1kavi1
2 years, 5 months ago
C or D
upvoted 1 times
k1kavi1
2 years, 5 months ago
Choosing D https://aws.amazon.com/blogs/storage/mounting-amazon-s3-to-an-amazon-ec2-instance-using-a-private-connection-to-s3-file-gateway/
upvoted 2 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