Question 052 Merged
Question 052 Merged
A company has a large data workload that runs for 6 hours each day. The company cannot lose any data while the process is running. A solutions
architect is designing an Amazon EMR cluster configuration to support this critical data workload.
A. Configure a long-running cluster that runs the primary node and core nodes on On-Demand Instances and the task nodes on Spot
Instances.
B. Configure a transient cluster that runs the primary node and core nodes on On-Demand Instances and the task nodes on Spot Instances.
C. Configure a transient cluster that runs the primary node on an On-Demand Instance and the core nodes and task nodes on Spot Instances.
D. Configure a long-running cluster that runs the primary node on an On-Demand Instance, the core nodes on Spot Instances, and the task
Correct Answer: B
Relax man. take a break since you have made this far so far.
upvoted 47 times
Selected Answer: B
A transient cluster provides cost savings because it runs only during the computation time, and it provides scalability and flexibility in a cloud
environment.
Option C (transient cluster with On-Demand primary node and Spot core and task nodes) exposes the core nodes to Spot Instance interruptions,
which may not be acceptable for a workload that cannot lose any data.
upvoted 13 times
Selected Answer: B
Selected Answer: B
"Cannot lose any data while the process is running" -> Primary and core nodes cannot be Spot instances -> A or B
https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-longrunning-transient.html
https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-instances-guidelines.html
upvoted 9 times
Option B suggests a transient cluster, which is terminated after all steps are completed. If the Spot Instances are interrupted and tasks are
not completed, the cluster might still terminate after the steps are deemed complete, potentially leading to incomplete processing of data.
upvoted 1 times
A company maintains an Amazon RDS database that maps users to cost centers. The company has accounts in an organization in AWS
Organizations. The company needs a solution that will tag all resources that are created in a specific AWS account in the organization. The
solution must tag each resource with the cost center ID of the user who created the resource.
A. Move the specific AWS account to a new organizational unit (OU) in Organizations from the management account. Create a service control
policy (SCP) that requires all existing resources to have the correct cost center tag before the resources are created. Apply the SCP to the new
OU.
B. Create an AWS Lambda function to tag the resources after the Lambda function looks up the appropriate cost center from the RDS
database. Configure an Amazon EventBridge rule that reacts to AWS CloudTrail events to invoke the Lambda function.
C. Create an AWS CloudFormation stack to deploy an AWS Lambda function. Configure the Lambda function to look up the appropriate cost
center from the RDS database and to tag resources. Create an Amazon EventBridge scheduled rule to invoke the CloudFormation stack.
D. Create an AWS Lambda function to tag the resources with a default value. Configure an Amazon EventBridge rule that reacts to AWS
CloudTrail events to invoke the Lambda function when a resource is missing the cost center tag.
Correct Answer: A
Selected Answer: A
I'm not sure, but I think this question is from professional solution architect question pool.
Please have a look at this one as well.
https://www.examtopics.com/discussions/amazon/view/112780-exam-aws-certified-solutions-architect-professional-sap-c02/
upvoted 10 times
Selected Answer: B
The best solution that meets all the requirements is option B. Here's why:
It can tag all resources created in a specific AWS account within the organization.
It uses a Lambda function to look up the appropriate cost center from the RDS database, ensuring accurate tagging.
The EventBridge rule reacting to CloudTrail events ensures that resources are tagged as they are created.
This approach can dynamically tag each resource with the cost center ID of the user who created it.
upvoted 1 times
Selected Answer: A
We need a solution, to automatically tag, also the existing resources. A,C, are more or less working solutions for new resources, but neither can do
the tagging of existing resources. D would add a default tag instead of the specific CC.
upvoted 1 times
Selected Answer: A
A is right
https://docs.aws.amazon.com/ko_kr/organizations/latest/userguide/orgs_tagging_abac.html
upvoted 4 times
A policy cannot look up "the cost center ID of the user who created the resource", we need Lambda to do that. Thus A is out.
C would work but runs on a schedule which doesn't make sense (and we would temporarily have untagged resources).
SCPs are a policy type that you can utilize to manage permissions across accounts in your AWS Organization.
Using SCPs lets you ensure that your accounts stay within your organization’s access control guidelines.
SCPs can be used along-side tag policies to ensure that the tags are applied at the resource creation time and remain attached to the resource.
upvoted 1 times
the company still maintains the RDS, nowhere was asked to drop using it, therefore we shall use a solution that takes advantages of it.
upvoted 3 times
I also choose A.
upvoted 2 times
Selected Answer: A
Company have Organization. A specific AWS account need to ensure all resources were tagged.
Move this specific AWS account under the company OU, use SCP to enforce top down policies that every member account to adhere.
Answer A.
upvoted 1 times
Selected Answer: B
This solution is the best way to meet the requirements of the company. It ensures that all resources in the specific AWS account are tagged with
the cost center ID of the user who created the resource. It also allows the company to easily manage and enforce compliance with its tagging
policies.
upvoted 1 times
Selected Answer: B
Create an AWS Lambda function to tag the resources after the Lambda function looks up the appropriate cost center from the RDS database.
Configure an Amazon EventBridge rule that reacts to AWS CloudTrail events to invoke the Lambda function.
upvoted 1 times
This solution utilizes AWS Lambda and Amazon EventBridge to automate the tagging process based on information from the RDS database and
CloudTrail events.
AWS Lambda Function: Create a Lambda function that can look up the cost center information from the RDS database and tag resources
accordingly.
Amazon EventBridge Rule: Set up an EventBridge rule to react to AWS CloudTrail events. The rule triggers the Lambda function whenever a
resource is created, allowing dynamic tagging based on the cost center associated with the user in the RDS database.
This solution provides automation, ensuring that resources are tagged appropriately with the cost center ID of the user who created the resource. I
also allows for flexibility in updating cost center information without modifying the infrastructure.
upvoted 4 times
Question #654 Topic 1
A company recently migrated its web application to the AWS Cloud. The company uses an Amazon EC2 instance to run multiple processes to host
the application. The processes include an Apache web server that serves static content. The Apache web server makes requests to a PHP
The company wants to redesign the architecture to be highly available and to use AWS managed solutions.
A. Use AWS Elastic Beanstalk to host the static content and the PHP application. Configure Elastic Beanstalk to deploy its EC2 instance into a
B. Use AWS Lambda to host the static content and the PHP application. Use an Amazon API Gateway REST API to proxy requests to the
Lambda function. Set the API Gateway CORS configuration to respond to the domain name. Configure Amazon ElastiCache for Redis to handle
session information.
C. Keep the backend code on the EC2 instance. Create an Amazon ElastiCache for Redis cluster that has Multi-AZ enabled. Configure the
ElastiCache for Redis cluster in cluster mode. Copy the frontend resources to Amazon S3. Configure the backend code to reference the EC2
instance.
D. Configure an Amazon CloudFront distribution with an Amazon S3 endpoint to an S3 bucket that is configured to host the static content.
Configure an Application Load Balancer that targets an Amazon Elastic Container Service (Amazon ECS) service that runs AWS Fargate tasks
for the PHP application. Configure the PHP application to use an Amazon ElastiCache for Redis cluster that runs in multiple Availability Zones.
Correct Answer: D
Selected Answer: D
D. ECS + Fargate
Company wants to redesign the architecture = from Server to serverless, and managed by AWS .
upvoted 4 times
Selected Answer: D
This solution meets the requirements because it uses AWS managed solutions for hosting the static content and the PHP application. It also uses
Amazon ECS to run the PHP application in a highly available and scalable manner. The solution also uses Amazon ElastiCache for Redis to handle
session information, which is highly available and scalable. The solution also uses Amazon CloudFront to provide a secure and reliable way to
deliver the static content to users.
upvoted 4 times
Selected Answer: D
Configure an Amazon CloudFront distribution with an Amazon S3 endpoint to an S3 bucket that is configured to host the static content. Configure
an Application Load Balancer that targets an Amazon Elastic Container Service (Amazon ECS) service that runs AWS Fargate tasks for the PHP
application. Configure the PHP application to use an Amazon ElastiCache for Redis cluster that runs in multiple Availability Zones.
upvoted 3 times
Question #655 Topic 1
A company runs a web application on Amazon EC2 instances in an Auto Scaling group that has a target group. The company designed the
application to work with session affinity (sticky sessions) for a better user experience.
The application must be available publicly over the internet as an endpoint. A WAF must be applied to the endpoint for additional security. Session
A. Create a public Network Load Balancer. Specify the application target group.
C. Create a public Application Load Balancer. Specify the application target group.
D. Create a second target group. Add Elastic IP addresses to the EC2 instances.
E. Create a web ACL in AWS WAF. Associate the web ACL with the endpoint
Correct Answer: CE
Selected Answer: CE
NLB and GLB cannot handle sticky sessions. It's an application level concept (Cookies) so ALB works.
Elastic IP will negate sticky sessions and this combination won't work.
E give proper permissions to WAF
upvoted 4 times
Selected Answer: CE
WAF must be applied to the endpoint for additional security = web ACL in WAF
upvoted 2 times
A company runs a website that stores images of historical events. Website users need the ability to search and view images based on the year
that the event in the image occurred. On average, users request each image only once or twice a year. The company wants a highly available
A. Store images in Amazon Elastic Block Store (Amazon EBS). Use a web server that runs on Amazon EC2.
B. Store images in Amazon Elastic File System (Amazon EFS). Use a web server that runs on Amazon EC2.
C. Store images in Amazon S3 Standard. Use S3 Standard to directly deliver images by using a static website.
D. Store images in Amazon S3 Standard-Infrequent Access (S3 Standard-IA). Use S3 Standard-IA to directly deliver images by using a static
website.
Correct Answer: D
Selected Answer: D
Selected Answer: D
D is correct
upvoted 1 times
Selected Answer: D
users request each image only once or twice a year, so infrequent is enough and cheaper
upvoted 1 times
Selected Answer: D
"On average, users request each image only once or twice a year."
S3 Infrequent Access is more than enough for this.
upvoted 2 times
Say, you have 1 TB of files that you access twice a year. Yearly cost:
C, S3 Standard: 276 USD for storage, free retrieval = 276 USD
D, S3 Standard-IA: 138 USD for storage, 20 € for retrieval = 158 USD
upvoted 1 times
S3 Standard-IA is designed specifically for infrequently accessed data, offering lower storage costs compared to S3 Standard while still providing
the necessary durability and availability.
upvoted 1 times
Selected Answer: D
Left D, answer
upvoted 3 times
Suppose there are thousands or millions of users, each image should be recovered once or twice a year X total users... makes it more expensive
than the standard class since the recovery price of Standard-IA is $0.01 per GB + price of the requests which is also more expensive too.
upvoted 2 times
Selected Answer: D
MOST cost-effectively, request each image only once or twice a year= S3 Standard-Infrequent Access
upvoted 1 times
Selected Answer: D
if the images are accessed once or twice a year, then it is cheaper to use infrequent access tier
upvoted 3 times