A company runs a critical public application on Amazon Elastic Kubernetes Service (Amazon EKS) clusters. The application has a microservices architecture. The company needs to implement a solution that collects, aggregates, and summarizes metrics and logs from the application in a centralized location.
Which solution will meet these requirements in the MOST operationally efficient way?
Answer : D
Amazon CloudWatch Container Insights is designed for monitoring containerized environments like EKS. It provides native support for collecting and visualizing metrics and logs in a centralized location through CloudWatch dashboards, offering the most operationally efficient solution.
Option A: Using the CloudWatch agent provides basic metrics but lacks the specific insights required for containerized applications.
Option B: Kinesis Data Streams and Firehose add unnecessary complexity for this use case.
Option C: CloudTrail is for auditing API activity and is not designed for application metrics and log aggregation.
AWS Documentation Reference:
Amazon CloudWatch Container Insights
An ecommerce company runs an application that uses an Amazon DynamoDB table in a single AWS Region. The company wants to deploy the application to a second Region. The company needs to support multi-active replication with low latency reads and writes to the existing DynamoDB table in both Regions.
Which solution will meet these requirements in the MOST operationally efficient way?
Answer : C
Converting the existing DynamoDB table to a global table provides active-active replication and low-latency reads and writes in both Regions. DynamoDB global tables are specifically designed for multi-Region and multi-active use cases.
Option A: GSIs do not provide multi-Region replication or active-active capabilities.
Option B and D: Using DynamoDB Streams and custom replication is less operationally efficient than global tables and introduces additional complexity.
AWS Documentation Reference:
A solutions architect is building an Amazon S3 data lake for a company. The company uses Amazon Kinesis Data Firehose to ingest customer personally identifiable information (PII) and transactional data in near real-time to an S3 bucket. The company needs to mask all PII data before storing the data in the data lake.
Which solution will meet these requirements?
Answer : A
Using a Lambda function as part of the Kinesis Data Firehose pipeline allows for real-time detection and masking of PII before data is written to S3. This ensures that PII is never stored in its raw form in the data lake.
Option B: Amazon Macie can scan and classify data but does not provide in-line PII masking for data ingestion.
Option C: Server-side encryption secures data but does not mask PII.
Option D: CloudHSM is unnecessary for PII masking and adds complexity without addressing the requirements.
AWS Documentation Reference:
Using Lambda with Kinesis Data Firehose
A solutions architect needs to optimize a large data analytics job that runs on an Amazon EMR cluster. The job takes 13 hours to finish. The cluster has multiple core nodes and worker nodes deployed on large, compute-optimized instances.
After reviewing EMR logs, the solutions architect discovers that several nodes are idle for more than 5 hours while the job is running. The solutions architect needs to optimize cluster performance.
Which solution will meet this requirement MOST cost-effectively?
Answer : B
EMR managed scaling dynamically resizes the cluster by adding or removing nodes based on the workload. This feature helps minimize idle time and reduces costs by scaling the cluster to meet processing demands efficiently.
Option A: Increasing the number of core nodes might increase idle time further, as it does not address the root cause of underutilization.
Option C: Migrating the job to Lambda is infeasible for large analytics jobs due to resource and runtime constraints.
Option D: Changing to memory-optimized instances may not necessarily reduce idle time or optimize costs.
AWS Documentation Reference:
A company wants to run big data workloads on Amazon EMR. The workloads need to process terabytes of data in memory.
A solutions architect needs to identify the appropriate EMR cluster instance configuration for the workloads.
Which solution will meet these requirements?
Answer : C
Big data workloads that need to process terabytes of data in memory require memory-optimized instances for the core and task nodes to ensure sufficient memory for processing data efficiently.
Primary Node: A general purpose instance is suitable because it manages cluster operations, including coordination and monitoring, and does not process data directly.
Core and Task Nodes: These nodes handle data storage and processing. Memory-optimized instances are ideal because they provide high memory-to-CPU ratios, which is critical for in-memory big data workloads.
Why Other Options Are Incorrect:
Option A: Storage optimized and compute optimized instances are not suitable for workloads that rely heavily on in-memory processing.
Option B: A memory-optimized primary node is unnecessary because the primary node does not process data.
Option D: General purpose instances for all nodes will not provide sufficient memory for processing terabytes of data in memory.
AWS Documentation Reference:
A company is developing a public web application that needs to access multiple AWS services. The application will have hundreds of users who must log in to the application first before using the services.
The company needs to implement a secure and scalable method to grant the web application temporary access to the AWS resources.
Which solution will meet these requirements?
Answer : B
Option B is the correct solution because:
AWS Security Token Service (STS) allows the web application to request temporary security credentials that grant access to AWS resources. These temporary credentials are secure and short-lived, reducing the risk of misuse.
Using STS and IAM roles ensures scalability by enabling the application to dynamically assume roles with the required permissions for each AWS service.
Option A: Assigning IAM roles directly to instances is less flexible and would grant the same permissions to all applications on the instance, which is not ideal for a multi-service web application.
Option C: AWS IAM Identity Center is used for managing single sign-on (SSO) for workforce users and is not designed for granting programmatic access to web applications.
Option D: Storing long-term access keys, even in AWS Systems Manager Parameter Store, is less secure and does not scale well compared to temporary credentials from STS.
AWS Documentation Reference:
AWS Security Token Service (STS)
IAM Roles for Temporary Credentials
A company is designing a new Amazon Elastic Kubernetes Service (Amazon EKS) deployment to host multi-tenant applications that use a single cluster. The company wants to ensure that each pod has its own hosted environment. The environments must not share CPU, memory, storage, or elastic network interfaces.
Which solution will meet these requirements?
Answer : B
AWS Fargate provides per-pod isolation for CPU, memory, storage, and networking, making it ideal for multi-tenant use cases.
AWS Documentation Reference: