What Is The Disambiguation of The Word “heap” in I.T.?

Problem scenario
You have read about heaps in computer programming and in operating systems. What do the different definitions of “heap” mean in I.T.?

Overview
Merriam-Webster’s Dictionary (11th Edition, on page 574) defines a heap as “a collection of things thrown one on another” or as a “pile.” The same word can have completely different meanings in English; a trash heap,

AWS Quiz

1. Which is one of the five pillars of a well-architected AWS framework?

a. Archived versions (of IaC)
b. Disaster Recovery
c. Monitoring
d. Performance Efficiency
e. None of the above

2. Signature version 4 is which of the following?

a. A certificate file from Amazon Web Security.
b. An SSL public key for AWS.
c. An SSL private key for AWS.

AWS Quiz Answers

1. Which is one of the five pillars of a well-architected AWS framework?

a. Archived versions (of IaC)
b. Disaster Recovery
c. Monitoring
d. Performance Efficiency
e. None of the above

Answer: D. Source: https://aws.amazon.com/blogs/apn/the-5-pillars-of-the-aws-well-architected-framework/

2. Signature version 4 is which of the following?

a. A certificate file from Amazon Web Security.
b. An SSL public key for AWS.

How Do You Create a File on a Server with Terraform?

Problem scenario
You are trying to get user data to create a file on a server in Terraform. It is in a directory that requires sudo privileges. You use the “sudo” command in the Bash script. The Bash script executes except a file is never transferred. How do you get Terraform to copy a file to a new server?

Solution
Use the Terraform-supported cloud_config option instead of having a Bash script transfer the file.

How Do You Do a regex Operation in Python without Importing a Module?

Problem scenario
You need a pattern matching function in a Python program, but you cannot use “import re”. What should you do?

Possible Solution #1
Use the index() function.

Here is an example:

foobar = “abcdefghijklmnopqrstuvwxyz”
print(foobar.index(‘jk’))

Possible Solution #2
Use the .starswith() function.

foobar = “abcdefghijklmnopqrstuvwxyz”
print(foobar.startswith(‘abc’))

Possible Solution #3
Use the find() function.

Where Are The SSH Logs in Fedora?

Problem scenario
You are trying to find the SSH logs in Fedora. Where should you look?

Possible solution #1
/var/log/secure/

Possible solution #2
Check these locations:
/var/log/ssh/
/var/log/auth.log

Possible solution #3
/var/log/messages
(Many other applications write to this file besides SSH.)

Possible solution #4
They could be stored in binary format in /var/log/journal/ …

Run this command: journalctl -u sshd
Look at the output.