HOW DO YOU DEBUG A BASH SHELL?
- Downloading bashdb - We install bashdb using system package manager. The package has steps for using debugging scripts.
- STEPS:
- Create a bash script file for example "script.sh"
- Copy the file from "._DEBUG.sh"
- Set up the debug configuration to "run - debug configuration -bash scripts"
- Lunch your "script.sh" from bash shell.
- Debugger port 33333 - Ensure that firewall are configured to allow connections to the port.
- "Set -x" option - This helps to execute the script and the argument. You can use set -x and set +x to see whats happening in your script.
- Echo command - We can see the variables and the output of commands as well as where the scripts is likely failing.
WHAT AWS SERVICES MANAGES COST?
ANSWER
- WHAT ARE THE CORE CHECKS OF TRUSTED ADVISOR?
- ANSWER:
- EBS public Snapshots
- RDS public Snapshots.
- IAM Use
- S3 Bucket Permission
- Security Groups - Specific port unrestricted.
- MFA on Root Account
- Service Limits
AWS SAVING PLANS
AWS saving plans: Ensures a flexible pricing model that helps to reduce bills significantly. AWS offers three types of Saving plans.
Compute Savings Plan- Like AWS Fargate, AWS Lambda, Region, Avalability Zone, saving up to 66%.
SageMaker Savings Plan -Like Any ML instance size, any region saving 64%
We use it to monitor and track your spending usage pattern and forecast future cost.
AWS BUDGET:
You can set up a threshold usage budget for your AWS resources either monthly, quarterly, annually and set up alert should you exceed budget.
USED CASE:
Think about this, you are in an environment where you have developers creating resources and some of the resources were not used; accumulating cost. As a best practice, using trusted Advisor to scan the environment will expose both tagged and untagged resources as well as their overhead cost...............
These are potential interview questions asked. Happy Learning!!😊
No comments:
Post a Comment