A company's application has an API that retrieves workload metrics. The company needs to audit, analyze, and visualize these metrics from the application to detect issues at scale.
Which combination of steps will meet these requirements? (Select THREE).
The recommended architecture to audit, analyze, and visualize application workload metrics at scale involves:
Using Amazon EventBridge to schedule AWS Lambda invocations that call the application API and fetch metrics (Option A). The data is stored in Amazon S3, which is ideal for scalable, cost-effective storage of large datasets.
Cataloging the stored data with AWS Glue crawlers, enabling schema discovery and making data queryable via Amazon Athena (Option C).
Visualizing the data by creating Amazon QuickSight datasets from Athena views and building dashboards for analysis (Option E).
Option B and D introduce DynamoDB, which is less suitable for large-scale analytics and Athena querying. Option F suggests querying Athena via Lambda widgets in CloudWatch, which adds complexity without significant benefit over QuickSight.
Serverless Analytics Architecture on AWS:
'Use Lambda + S3 + Glue + Athena + QuickSight for scalable data ingestion, cataloging, querying, and visualization.'
(AWS Analytics Reference Architecture)
AWS Glue Crawlers and Athena:
'Glue crawlers catalog data stored in S3 and create Athena tables to enable SQL querying.'
(AWS Glue Documentation)
Amazon QuickSight for Visualization:
'QuickSight enables creating interactive dashboards from Athena query results.'
(Amazon QuickSight Overview)
A company uses an AWS CodeArtifact repository to store Python packages that the company developed internally. A DevOps engineer needs to use AWS CodeDeploy to deploy an application to an Amazon EC2 instance. The application uses a Python package that is stored in the CodeArtifact repository. A BeforeInstall lifecycle event hook will install the package.
The DevOps engineer needs to grant the EC2 instance access to the CodeArtifact repository.
Which solution will meet this requirement?
To allow an EC2 instance to access CodeArtifact, an IAM role attached via an instance profile must be granted permissions to access the CodeArtifact repository. The EC2 instance assumes this role.
The instance then uses the AWS CLI command aws codeartifact login to authenticate and configure the package manager (e.g., pip) to use the CodeArtifact repository. This command obtains an authorization token and sets up repository credentials securely on the instance.
Service-linked roles (Option A) are managed by AWS services, not used for instance access. CodeArtifact does not support ACLs (Option C), and resource-based policies (Option B) do not grant access to EC2 instances by principal.
This method is standard for securely managing credentials and access to CodeArtifact in automated deployments.
AWS CodeArtifact Access Control and Authentication:
'Use IAM roles attached to compute resources and the aws codeartifact login command to authenticate to repositories.'
(AWS CodeArtifact Developer Guide)
A company deployed an Amazon CloudFront distribution that accepts requests and routes to an Amazon API Gateway HTTP API. During a recent security audit, the company discovered that requests from the internet could reach the HTTP API without using the CloudFront distribution.
A DevOps engineer must ensure that connections to the HTTP API use the CloudFront distribution.
Which solution will meet these requirements?
To restrict direct access to API Gateway, add a custom header in the CloudFront distribution origin request and use a Lambda authorizer in API Gateway to validate that header. Only requests routed through CloudFront will include this header. This is the AWS-recommended pattern in ''Secure your APIs behind CloudFront using custom headers and Lambda authorizers.''
A company is reviewing its 1AM policies. One policy written by the DevOps engineer has been (lagged as too permissive. The policy is used by an AWS Lambda function that issues a stop command to Amazon EC2 instances tagged with Environment: NonProduccion over the weekend. The current policy is:
What changes should the engineer make to achieve a policy ot least permission? (Select THREE.)
The engineer should make the following changes to achieve a policy of least permission:
A: Add a condition to ensure that the principal making the request is an AWS Lambda function. This ensures that only Lambda functions can execute this policy.
B: Narrow down the resources by specifying the ARN of EC2 instances instead of allowing all resources. This ensures that the policy only affects EC2 instances.
D: Add a condition to ensure that this policy only applies to EC2 instances tagged with ''Environment: NonProduction''. This ensures that production environments are not affected by this policy.
:
AWS Identity and Access Management (IAM) - AWS Documentation
Certified DevOps Engineer - Professional (DOP-C02) Study Guide (page 179)
A company uses a single AWS account lo test applications on Amazon EC2 instances. The company has turned on AWS Config in the AWS account and has activated the restricted-ssh AWS Config managed rule.
The company needs an automated monitoring solution that will provide a customized notification in real time if any security group in the account is not compliant with the restricted-ssh rule. The customized notification must contain the name and ID of the noncompliant security group.
A DevOps engineer creates an Amazon Simple Notification Service (Amazon SNS) topic in the account and subscribes the appropriate personnel to the topic.
What should me DevOps engineer do next to meet these requirements?
Create an Amazon EventBridge (Amazon CloudWatch Events) rule that matches an AWS Config evaluation result of NON_COMPLIANT for the restricted-ssh rule. Configure an input transformer for the EventBridge (CloudWatch Events) rule. Configure the EventBridge (CloudWatch Events) rule to publish a notification to the SNS topic. This approach uses Amazon EventBridge (previously known as Amazon CloudWatch Events) to filter AWS Config evaluation results based on the restricted-ssh rule and its compliance status (NON_COMPLIANT). An input transformer can be used to customize the information contained in the notification, such as the name and ID of the noncompliant security group. The EventBridge (CloudWatch Events) rule can then be configured to publish a notification to the SNS topic, which will notify the appropriate personnel in real-time.
Freya Perez
6 days agoJae Zhao
24 days agoBrian Adams
1 month agoHoa Jeong
2 months agoBushra Rizvi
2 months agoTariq Jamil
3 months agoJames Williams
3 months ago